import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule, Routes } from '@angular/router';
import { LoginComponent } from './login/login.component';
import { HomeComponent } from './home/home.component';
import { TestComponent } from './test/test.component';
const routes: Routes = [
    { path: '', redirectTo: '/test', pathMatch: 'full' },
    {
        path: 'home', component: HomeComponent,
    },
    { path: 'login', component: LoginComponent},
    { path: 'test', component: TestComponent},
];
@NgModule({
  imports: [
    CommonModule,
    RouterModule.forRoot(routes, {useHash: true})
  ],
  exports: [RouterModule],
  declarations: []
})
export class AppRoutingModule { }
